<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="../commons/meta.jsp"%>
    <title>${commonTitle}-添加接口</title>
    <!-- 日期控件 -->
    <script src="${pageContext.request.contextPath}/hplus/js/plugins/layer/laydate/laydate.js"></script>
    <script src="${ctx}/hplus/js/plugins/suggest/bootstrap-suggest.min.js"></script>
</head>
<body class="fixed-sidebar full-height-layout">
<div id="wrapper">
    <%@ include file="../commons/left.jsp"%>
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <%@ include file="../commons/top.jsp"%>
        <!-- 业务代码 -->
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>添加授权管理</h2>
                <ol class="breadcrumb">
                    <li><a href="${ctx}/send/service/list">接口授权管理</a></li>
                    <li><strong>添加接口</strong></li>
                </ol>
            </div>
            <div class="col-lg-2"></div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">

                        <div class="ibox-title">
                            <h5>添加接口</h5>
                            <div class="ibox-tools">
                                <a href="#" class="btn btn-primary btn-xs" id="goBack">返回列表</a>
                            </div>
                        </div>
                        <div class="ibox-content">

                            <form class="form-horizontal m-t" id="addForm" method="post" action="#">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">接口类型：</label>
                                    <div class="col-sm-4">
                                        <div class="input-group">
                                            <input type="text" class="form-control" id="method" name="method"/>
                                            <div class="input-group-btn">
                                                <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                                    <span class="caret"></span>
                                                </button>
                                                <ul class="dropdown-menu dropdown-menu-right" role="menu">
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                    <!-- /btn-group -->
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">接口名称：</label>
                                    <div class="col-sm-4">
                                        <input name="methodName" class="form-control" value="" id="methodName"/>
                                    </div>
                                    <span class="spanRed">*</span>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">每天访问次数：</label>
                                    <div class="col-sm-4">
                                        <input name="limitD" class="form-control" value="-1" id="limitD"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">每天小时访问次数：</label>
                                    <div class="col-sm-4">
                                        <input name="limitH" class="form-control" value="-1" id="limitH"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">每分钟访问次数：</label>
                                    <div class="col-sm-4">
                                        <input name="limitM" class="form-control" value="-1" id="limitM"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">每秒访问次数：</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" name="limitS" value="10" id="limitS" />
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-3">
                                        <button class="btn btn-primary" type="submit">添加</button>
                                    </div>
                                </div>

                            </form>
                        </div>

                    </div>
                </div>
            </div>
        </div>
        <%@ include file="../commons/footer.jsp"%>
    </div>
</div>
<!-- jQuery Validation plugin javascript-->
<%@ include file="../commons/validate.jsp"%>
<script src="${ctx}/hplus/js/gateway/developer/addInterface.js"></script>

</body>
</html>